//
//  PersonContentTableViewCell.m
//  XRSquare
//
//  Created by 穆相臣 on 2018/11/16.
//  Copyright © 2018 UaenaMo. All rights reserved.
//

#import "PersonContentTableViewCell.h"

@interface PersonContentTableViewCell ()
{
    UILabel * titleLabel;
    UIImageView * contentImage;
    UIView * line;
}
@end

@implementation PersonContentTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, ScreenWidth, 20)];
        titleLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:titleLabel];
        
        contentImage = [[UIImageView alloc]initWithFrame:CGRectMake(ScreenWidth - 30, 10, 20, 20)];
        contentImage.image = [UIImage imageNamed:@""];
        [self addSubview:contentImage];
        
        line = [[UIView alloc]initWithFrame:CGRectMake(0, 40, ScreenWidth, 1)];
        line.backgroundColor = [UIColor colorFromHexCode:@"f3f3f3"];
        [self addSubview:line];
    }
    return self;
}

+(CGFloat)height
{
    return 41;
}

-(void)loadTitle:(NSString *)title arrowImage:(NSString *)arrowImage
{
    titleLabel.text = title;
    contentImage.image = arrowImage;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
